package cc.lj.internal.coupons.domain.martcap.model.vo.convert;

import cc.lj.internal.coupons.domain.martcap.model.vo.BatchBindRelationDO;
import cc.lj.internal.coupons.infrastructure.po.BatchBindRelationPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liangxifeng
 * 券批次绑定关系表 PO 与 DO 之间转换
 * @date 2023/6/12 10:16
 */
@Mapper
public interface BatchBindRelationPOConvertDO {
    BatchBindRelationPOConvertDO INSTANCE = Mappers.getMapper(BatchBindRelationPOConvertDO.class);

    // PO to DO
    BatchBindRelationDO convert(BatchBindRelationPO po);

    //DO to PO
    BatchBindRelationPO convert(BatchBindRelationDO relationDO);

}
